<?php
namespace soa\express\express;
use soa\client;

/**
 * Class notice
 * @package soa\express\express
 */
class notice extends client
{

    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://express.core.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_express';

    /**
     * 添加订阅推送
     * @param $brand
     * @param $no
     * @param $status
     * @param $user_id
     * @param $imei
     * @param $type
     * @return bool|null
     */
    public function subscribeNotice($brand, $no, $status = '', $user_id = 0, $imei = '', $type = 'mobile')
    {
        return $this->get('v1/express/notice/subscribeNotice', compact('brand', 'no', 'status', 'user_id', 'imei', 'type'));
    }

    /**
     * 取消订阅推送
     * @param $brand
     * @param $no
     * @param $user_id
     * @param $imei
     * @param $type
     * @return bool|null
     */
    public function unsubscribeNotice($brand, $no, $user_id = 0, $imei = '', $type = 'mobile')
    {
        return $this->get('v1/express/notice/unsubscribeNotice', compact('brand', 'no', 'user_id', 'imei', 'type'));

    }
}